import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router'
import ElementUI from 'element-ui'

// element-ui
import 'element-ui/lib/theme-chalk/index.css';
// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
// echarts
import * as echarts from 'echarts'; //导入echarts组件

// vuex
import store from './store'

Vue.use(VueQuillEditor)
Vue.use(VueRouter)
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    // 注册全局事件总线
    Vue.prototype.$bus = this
    Vue.prototype.echarts = echarts;//将echarts组件绑定到vue对象
  }
}).$mount('#app')
